package main

import (
	"github.com/olivere/elastic/v7"
	"luiz/crawler_distributed/persist"
	"luiz/crawler_distributed/prcsupport"
)

func main() {
	client, err := elastic.NewClient(elastic.SetURL("http://124.71.171.6:9200/"))
	if err != nil {
		panic(err)
	}
	prcsupport.ServeRpc(":1234", persist.ItemSaverService{Client: client})
}
